package stream;

import java.util.ArrayList;

/**
 * @author oldliu
 * @since 1.0
 */
public class OperTest {
    public static void main(String[] args) {
        Operate op1=(x,y)->{
           return x+y;
        };
        Operate op2=(a,b)->{
            return a*b;
        };
        System.out.println(op2.getClass().getName());
        int r = op2.op(49, 21);
        System.out.println(r);
        int r2 = op2.op(5, 6);
        System.out.println(r2);

        Thread th=new Thread(()->{
            for (int i = 0; i <20 ; i++) {
                System.out.println(Thread.currentThread().getName()+"print "+i);
            }
        },"线程-2");


        th.start();

        //System.out::println(23);

        //java.util.List list= ArrayList::new;

        //拽！
        Operate b=Math::max;
        int op = b.op(100, 104);
        System.out.println(op);
    }
}
